package com.che300.test.demos.web.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author chenjl26787
 * @version 1.0
 * @date 2025-02-23$ 20:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> {
    HttpServerCodeEnum httpServerCodeEnum;
    private T data;

    public Result(HttpServerCodeEnum httpServerCodeEnum) {
        this.httpServerCodeEnum = httpServerCodeEnum;
    }
    @Override
    public String toString() {
        return "Result{" +
                "httpServerCodeEnum=" + httpServerCodeEnum +
                ", data=" + data +
                '}';
    }
}
